<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>标签历史记录</title>
  <style>
    body {
      width: 350px;
      max-height: 500px;
      border-radius: 6px;
      font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
      margin: 0;
      padding: 10px;
    }
    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      padding-bottom: 5px;
      border-bottom: 1px solid #eee;
    }
    h1 {
      font-size: 16px;
      margin: 0;
    }
    .tab-list {
      list-style: none;
      padding: 0;
      margin: 0;
      overflow-y: auto;
      max-height: 450px;
    }
    .tab-item {
      display: flex;
      align-items: center;
      padding: 8px;
      border-bottom: 1px solid #f0f0f0;
      cursor: pointer;
      overflow: hidden;
      font-weight: 500;
      transition: background-color 0.2s;
    }
    .tab-item:hover {
      background-color: 	#FF69B470;
      border-radius: 4px;
    }
    .tab-icon {
      width: 16px;
      height: 16px;
      margin-right: 8px;
    }
    .tab-title {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 14px;
    }
    .tab-url {
      color: #888;
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 2px;
    }
    .tab-description {
      color: #666;
      font-size: 12px;
      margin-top: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .empty-state {
      text-align: center;
      color: #888;
      margin-top: 20px;
    }
    .clear-btn {
      background: #f44336;
      color: white;
      border: none;
      padding: 5px 10px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 12px;
    }
    .clear-btn:hover {
      background: #d32f2f;
    }
  </style>
</head>
<body>
  <div class="header">
    <h1>最近关闭的标签页</h1>
    <button id="clearHistory" class="clear-btn">清空历史</button>
  </div>
  <ul id="tabList" class="tab-list"></ul>
  <div id="emptyState" class="empty-state" style="display: none;">
    没有最近关闭的标签页
  </div>
  <script src="popup.js"></script>
</body>
</html>